package action;

import java.util.ArrayList;

import manager.ComManager;
import manager.ObjectFactory;
import bean.LoadUserListMessage;
import bean.UserBean;

public class ActionGetListUsers {
	
	public ArrayList<UserBean> doGetListUsers(){
		ObjectFactory of = new ObjectFactory();
		ComManager com = of.createComManager();
		LoadUserListMessage mOut = of.createLoadUserListMessage();
		LoadUserListMessage mIn ;
	
		mIn = (LoadUserListMessage)com.sendMessage(mOut);
		ArrayList<UserBean> listUsers = mIn.getListUser();
		return listUsers;
	}

}
